﻿<UserControl x:Class="MemoryGames.Games.WrongWord.Maintenance"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="768" Width="1028" Background="DarkBlue">
    <Grid>
        <GroupBox Header="Vragen" Margin="35,38,485,0" Name="gbQuestions" Height="227" VerticalAlignment="Top" Foreground="White">
            <Grid>
                <ListView Name="lvQuestions" ItemsSource="{Binding}" Margin="6,6,114,6" SelectionChanged="lvQuestions_SelectionChanged">
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Width="0" Header="Vraag id" DisplayMemberBinding="{Binding Path=QuestionId}">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <Label />
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                            <GridViewColumn Header="Nummer" DisplayMemberBinding="{Binding Path=Question}">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <Label />
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                            <GridViewColumn Header="Antwoorden">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <Label>Todo lijst met antwoorden</Label>
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Button Height="23" HorizontalAlignment="Right" Margin="0,6,6,0" Name="btnQuestionAdd" VerticalAlignment="Top" Width="102" Click="btnQuestionAdd_Click">Toevoegen</Button>
                <Button Height="23" HorizontalAlignment="Right" Margin="0,35,6,0" Name="btnQuestionRemove" VerticalAlignment="Top" Width="102" Click="btnQuestionRemove_Click">Verwijderen</Button>
            </Grid>
        </GroupBox>
        <GroupBox Header="Vraag" Margin="35,271,485,279" Name="gbQuestion" Foreground="White">
            <Grid>
                <Label Height="28" HorizontalAlignment="Left" Margin="6,6,0,0" Name="label1" VerticalAlignment="Top" Width="120" Foreground="White">Nummer</Label>
                <TextBox DataContext="{Binding}" Text="{Binding Path=Question}" Height="23" Margin="132,8,0,0" Name="txtNumber" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" />
                <Label Height="28" HorizontalAlignment="Left" Margin="6,37,0,0" Name="label2" VerticalAlignment="Top" Width="120" Foreground="White">Antwoorden</Label>
                <ListView Margin="132,37,112,6" ItemsSource="{Binding}" Name="lvAnswers">
                    <ListView.View>
                        <GridView>
                            <GridViewColumn Header="Antwoord" Width="120">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBox Text="{Binding Path=Answer}"/>
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                            <GridViewColumn Header="Goede antwoord">
                                <GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <RadioButton IsChecked="{Binding Path=CorrectAnswer}" GroupName="GoodAnswer" />
                                    </DataTemplate>
                                </GridViewColumn.CellTemplate>
                            </GridViewColumn>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Button Margin="390,0,0,132" Name="btnAnswerAdd" HorizontalAlignment="Left" Width="102" Height="26.04" VerticalAlignment="Bottom" Click="btnAnswerAdd_Click">Toevoegen</Button>
                <Button HorizontalAlignment="Right" Margin="0,69,4,0" Name="btnAnswerRemove" Width="102" Height="23.04" VerticalAlignment="Top" Click="btnAnswerRemove_Click">Verwijderen</Button>
            </Grid>
        </GroupBox>
        <Button Height="23" HorizontalAlignment="Left" Margin="35,0,0,250" Name="btnSave" VerticalAlignment="Bottom" Width="96" Click="btnSave_Click">Opslaan</Button>
        <Button Height="23" HorizontalAlignment="Left" Margin="137,495,0,0" Name="btnCancel" VerticalAlignment="Top" Width="71" Click="btnCancel_Click">Annuleren</Button>
    </Grid>
</UserControl>
